import { createApp } from 'vue'
import App from '@/App.vue'
import router from '@/router'
//pinia
import store from './store'
import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'
import locale from "element-plus/es/locale/lang/zh-cn"
import axios from 'axios'
import VueAxios from 'vue-axios'
//引入所有全局自定义插件
import globaComponents from '@/components/index'

import * as echarts from 'echarts';
import 'echarts/extension/bmap/bmap';
import 'lib-flexible'

// import request from './utils/request'
// import api from './utils/api'
const app =createApp(App)
//vue3全局挂载
app.config.globalProperties.$http=axios 
axios.defaults.baseURL = '/api'
app.config.globalProperties.$echarts = echarts
app.use(store).use(router).use(ElementPlus,{locale}).use(VueAxios,axios).use(store).use(globaComponents).mount('#app')
